asm_compiler: asm_compiler.o pass1.o pass2.o db.o utilities.o
	gcc -O -g pass1.o pass2.o asm_compiler.o utilities.o db.o -o asm_compiler

asm_compiler.o: asm_compiler.c utilities.h pass2.h
	gcc -c -Wall -g -ansi -pedantic asm_compiler.c

pass1.o: pass1.c pass1.h utilities.h db.h
	gcc -c -Wall -g -ansi -pedantic pass1.c

pass2.o: pass2.c utilities.h db.h
	gcc -c -Wall -g -ansi -pedantic pass2.c

db.o: db.c db.h utilities.h
	gcc -c -Wall -g -ansi -pedantic db.c

utilities.o: utilities.c utilities.h
	gcc -c -Wall -g -ansi -pedantic utilities.c

clean:
	rm *.o *~
